{{if validation_errors()}}
<ul class="message error">
    <li>{{validation_errors()}}</li>
</ul>
{{/if}}

<div class="clear"></div>
<div class="block-border">
    <form class="block-content form" id="simple_form" method="post" action="{{site_url('auth/user/change_password')}}">

        <h1>{{$user->localize_label('change_password')}}</h1>

        {{if isset($user->id)}}{{form_hidden('id', $user->id)}}{{/if}}		
        <fieldset class="grey-bg">			
            <legend>{{$user->lang->line('required')}}</legend>
            <p>
                <label>{{$user->localize_label('username')}}: {{if isset($user->id)}}<font color="Green">{{if isset($user->username)}}{{$user->username}}{{/if}}</font>{{/if}}</label>
            </p>


            <div class="required">
                <p>
                    <label>{{$user->localize_label('new_password')}}</label>				
                    <input type="password" name="password" class="full-width" value="">
                    {{form_error('password')}}				
                </p>

                <p>
                    <label>{{$user->localize_label('confirm_password')}}</label>				
                    <input type="password" name="confirm_password" class="full-width" value="">		
                    {{form_error('confirm_password')}}				
                </p>

            </div>
        </fieldset>

        <fieldset class="grey-bg no-margin">
            <legend>{{$user->lang->line('action')}}</legend>
            <p class="input-with-button">
                <button type="submit">{{$user->lang->line('save')}}</button>
            </p>
        </fieldset>					
    </form>
</div>